/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cmc.rra.sub.impl;

import com.cmc.rra.sub.AppUser;
import java.util.Date;
import java.util.UUID;

/**
 *
 * @author CMC
 */
public class AppUserImpl implements AppUser{
    
    private Long id;
    private String guid;
    private Long createdBy;
    private Date createdOn;
    private Long modifiedBy;
    private Date modifiedOn;
    private Short active;
    private String userName;
    private String password;
    private String type;
    
    public AppUserImpl(){
        setGuid(UUID.randomUUID().toString());
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    public Date getModifiedOn() {
        return modifiedOn;
    }

    public void setModifiedOn(Date modifiedOn) {
        this.modifiedOn = modifiedOn;
    }

    public Long getModifiedBy() {
        return modifiedBy;
    }

    public void setModifiedBy(Long modifiedBy) {
        this.modifiedBy = modifiedBy;
    }

    public Short getActive() {
        return active;
    }

    public void setActive(Short active) {
        this.active = active;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("AppUserImpl{ id = ");
        builder.append(id);
        builder.append(", guid=");
        builder.append(guid);
        builder.append(", createdBy=");
        builder.append(createdBy);
        builder.append(", createdOn=");
        builder.append(createdOn);
        builder.append(", modifiedBy=");
        builder.append(modifiedBy);
        builder.append(", modifiedOn=");
        builder.append(modifiedOn);
        builder.append(", active=");
        builder.append(active);
        builder.append(", userName=");
        builder.append(userName);
        builder.append(", password=");
        builder.append(password);
        builder.append(", type=");
        builder.append(type);
        builder.append(" }");
              
        return builder.toString();
        
    }
        
    
}
